<include file='../Public/header' />
<form action="{:U('add/doUploadImg')}" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input type="hidden" name="attachId" id="attachId" value="" />
<input type="hidden" name="attachName" id="attachName" value="" />
  <p>{:W( 'UploadAttach',array( 'uid'=>$mid , 'type'=>'ad' , 'callback'=>'img_upload_success'))}</p>
  <p>
    <input type="submit" value="下一步" />
  </p>
</form>
<div id="imgShow"></div>
<include file='../Public/footer' />
<script type="text/javascript">
function img_upload_success(info){
	$('#attachId').val(info.attachId);
	$('#attachName').val(info.name);
	var attachInfo = "<img src='"+SITE_URL+info.savepath+info.savename+"' />";
	console.log(info.attachId);
	$('#imgShow').append(attachInfo);
}
</script>